import request from '@/utils/request'

// 查询毕业院校信息列表
export function listSchool(query) {
  return request({
    url: '/graduation/school/list',
    method: 'get',
    params: query
  })
}

// 查询毕业院校信息详细
export function getSchool(id) {
  return request({
    url: '/graduation/school/' + id,
    method: 'get'
  })
}

// 新增毕业院校信息
export function addSchool(data) {
  return request({
    url: '/graduation/school',
    method: 'post',
    data: data
  })
}

// 修改毕业院校信息
export function updateSchool(data) {
  return request({
    url: '/add/add/update9',
    method: 'put',
    data: data
  })
}

// 删除毕业院校信息
export function delSchool(id) {
  return request({
    url: '/graduation/school/' + id,
    method: 'delete'
  })
}

// 输入账号，获取人名
export function getFirefighterIdCard(idCardNumber) {
  return request({
    url: '/add/add/firefighterIdCard',
    method: 'post',
    data: {
      idCardNumber: idCardNumber
    }
  })
}
// 批量添加
export function addList(data) {
  return request({
    url: '/add/add/graduation',
    method: 'post',
    data: data
  })
}